package com.jobpass.controller;

import com.jobpass.common.data.ResultData;
import com.jobpass.common.model.Score;
import com.jobpass.common.service.ScoreService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: Qning
 * @Description:
 * @Date: 2020/7/22 22:58
 * @PackageName: com.jobpass.controller
 * @ClassName: ScoreController
 */
@RestController
@RequestMapping("student")
public class ScoreController {
    @Resource
    private ScoreService scoreService;

    @PostMapping("/saveScore")
    public ResultData saveScore(@RequestBody Score score){

//        boolean b = scoreService.save(score);
//        if (b) {
//            return ResultData.success();
//        }
        return ResultData.fail();
    }
}
